home *** CD-ROM | disk | FTP | other *** search
/ Aminet 52 / Aminet 52 (2002)(GTI - Schatztruhe)[!][Dec 2002].iso / Aminet / dev / gg / gengetopt-2.6.lha / gengetopt-2.6 / ChangeLog < prev    next >
Text File  |  2002-03-02  |  13KB  |  421 lines

  1. 2002-03-02  Lorenzo Bettini  <bettini@dsi.unifi.it>
  2.  
  3.     * NEWS: Version 2.6 released
  4.  
  5.     * src/cmdline.ggo: use defaults for func-name and file-name
  6.  
  7. 2002-03-01  Lorenzo Bettini  <bettini@dsi.unifi.it>
  8.  
  9.     * src/gm.c (generate_cmdline_parser): possibly generate assignments
  10.     for default values
  11.  
  12.     * src/ggos.h (struct gengetopt_option): added fields for default
  13.     values
  14.  
  15.     * src/gengetopt.c (gengetopt_add_option): do not consider an error
  16.     an empty desc
  17.     (main): set comment[1][0] to 0 after malloc
  18.     (gengetopt_add_option): also handle default values
  19.  
  20. 2001-12-31  Lorenzo Bettini  <bettini@dsi.unifi.it>
  21.  
  22.     * src/gm.c (generate_cmdline_parser): if HAVE_STRDUP is defined
  23.     then use the standard strdup
  24.     use EXIT_FAILURE and EXIT_SUCCESS for exit
  25.  
  26.     * src/parser.y: an empty line at the end of the .ggo file is no
  27.     longer needed
  28.  
  29.     * src/scanner.l (update_count_line): update gengetopt_count_line
  30.     also within a string TOK_MLSTRING; this way possible errors in the
  31.     .ggo files are notified with the right line number
  32.     for # comments '\n' are excluded
  33.  
  34.     * src/gm.c (canonize_names): Added to canonize a name
  35.     (generate_cmdline_parser): function names and #define directives
  36.     are canonized
  37.  
  38.     * tests/canonize-names-cmd.ggo: Added to test how function names
  39.     and #define directives are canonized
  40.  
  41. 2001-12-18  Lorenzo Bettini  <bettini@dsi.unifi.it>
  42.  
  43.     * NEWS: Version 2.5 released
  44.     
  45. 2001-12-16  Lorenzo Bettini  <bettini@dsi.unifi.it>
  46.  
  47.     * configure.in: test for alloca is no more necessary with these
  48.     new versions of getopt
  49.  
  50.     * src/getopt.c: much more modern version taken from GNU C library
  51.  
  52.     * src/getopt1.c: much more modern version taken from GNU C library
  53.  
  54.     * src/getopt.h: much more modern version taken from GNU C library
  55.  
  56. 2001-11-12  Brian Minard  <bminard@flatfoot.ca>
  57.  
  58.     * src/gm.c (gengetopt_strlen): removed, it is no use
  59.     (generate_cmdline_parser) gengetopt_strdup is generated from
  60.     gengetopt_strdup.text
  61.     
  62.     * src/gengetopt_strdup.text: automatically generated from strdup.c
  63.     
  64. 2001-11-01  Brian Minard  <bminard@flatfoot.ca>
  65.  
  66.     * src/gm.c (generate_cmdline_parser): use (size_t) for specifying
  67.     malloc argument when generating gengetopt_strdup
  68.  
  69. 2001-10-09  Herbert Thoma  <tma@iis.fhg.de>
  70.     
  71.     * src/gm.c (generate_cmdline_parser): generate a different printf
  72.     in the generated print_help function for every option, thus avoiding
  73.     to generate an help string that's too long
  74.  
  75. 2001-09-03  Guillaume Chazarain  <booh@altern.org>
  76.  
  77.     * src/gm.c (do_check_option_given): Set args_info->option_given to 1
  78.         also when option is a flag (bug fixed).
  79.     
  80. 2001-08-13  Lorenzo Bettini  <bettini@dsi.unifi.it>
  81.  
  82.     * NEWS: Version 2.4 released
  83.  
  84. 2001-06-24  Lorenzo Bettini  <bettini@dsi.unifi.it>
  85.  
  86.     * doc/Makefile.am: testdata is not removed as a maintainer file 
  87.  
  88.     * src/gm.c: included string.h
  89.  
  90.     * src/scanner.l: included string.h
  91.  
  92. 2001-06-10  Lorenzo Bettini  <bettini@dsi.unifi.it>
  93.  
  94.     * src/gm.c (generate_cmdline_parser): optind is generated = 1,
  95.     otherwise it doesn't work with cygwin
  96.  
  97. 2001-05-19  Lorenzo Bettini  <bettini@dsi.unifi.it>
  98.  
  99.     * src/strdup.c (strdup): Test for a bad allocation and return 0
  100.     in that case
  101.  
  102. 2001-05-06  Lorenzo Bettini  <bettini@dsi.unifi.it>
  103.  
  104.     * tests/Makefile.am (no_optgiven_cmd.c): this file it is generated
  105.     with --no-handle-error option
  106.  
  107.     * src/cmdline.ggo: Added no-handle-error
  108.  
  109.     * src/Makefile.am: the command line parser is generated with the
  110.     option --no-handle-help
  111.  
  112.     * src/gm.c (generate_cmdline_parser): Added generation of instructions
  113.     that let the command line parser to be called more than once,
  114.     suggested by Eric H Kinzie <ekinzie@cmf.nrl.navy.mil>.
  115.     (generate_error_handle): Added to generate return 1 instead of
  116.     exit 1 if --no-handle-error is given.
  117.     Thus print_help is not autmoatically called when an option is 
  118.     given more than once, as it was before
  119.  
  120.     * tests/more_than_once.c (main): Call the command line parser
  121.     twice and print the values of the parameters
  122.  
  123.     * tests/more_than_once.sh.in: Added to test when the command
  124.     line parser is called more than once
  125.  
  126.     * doc/gengetopt.html.in: updated footer copyright 
  127.  
  128.     * configure.in: moved to 2.4
  129.  
  130. 2001-05-05  Lorenzo Bettini  <bettini@dsi.unifi.it>
  131.  
  132.     * tests/no_optgiven.sh.in: removed the negation !, not recognized
  133.     on some systems.
  134.  
  135.     * tests/Makefile.am (LDFLAGS): Added to use INCLUDES also in the
  136.     linking, because some files are compiled in that moment
  137.  
  138.     * doc/Makefile.am (INCLUDES): Added
  139.     (EXTRA_DIST): removed getopt.h from this directory
  140.  
  141.     * tests/Makefile.am (INCLUDES): and (LDADD) to consider the case
  142.     that there's no getopt_long in the C library
  143.  
  144.     * configure.in: moved to 2.3.1
  145.  
  146. 2001-04-10  Lorenzo Bettini  <bettini@dsi.unifi.it>
  147.  
  148.     * Version 2.3
  149.  
  150.     * tests/Makefile.am (TESTS): Added tests
  151.  
  152. 2001-03-23  Lorenzo Bettini  <bettini@dsi.unifi.it>
  153.  
  154.     * src/gm.c (generate_cmdline_parser): gengetopt_strdup is only
  155.     generated if a string option is used or --unamed-opt was
  156.     specified
  157.  
  158.     * tests/Makefile.am: Added
  159.  
  160.     * src/gm.c (generate_cmdline_parser): for inputs gengetopt_strdup,
  161.     instead of standard strdup, is used.
  162.  
  163. 2001-03-22  Lorenzo Bettini  <bettini@dsi.unifi.it>
  164.  
  165.     * doc/no_getopt_long.txt: Added alloca instructions 
  166.  
  167. 2001-03-20  Lorenzo Bettini  <bettini@dsi.unifi.it>
  168.  
  169.     * src/gengetopt.c (main): handle --help and --version
  170.  
  171.     * src/copyright.text: Added to be processed by txtc compiler
  172.  
  173.     * configure.in: use TXTC
  174.  
  175.     * src/gm.c (generate_cmdline_parser): if previous options are given
  176.     do not print help and version automatically and exit. Provide
  177.     the functions for print_help and print_version prefixing with
  178.     function_name parameter
  179.  
  180.     * src/cmdline.ggo: Added --no-handle-help and --no-handle-version not
  181.     to handle --help and --version automatically
  182.  
  183.     * doc/Makefile.am (check): diff with the previous output
  184.  
  185. 2001-02-09  Lorenzo Bettini  <bettini@gdn.dsi.unifi.it>
  186.  
  187.     * src/gm.c (generate_cmdline_parser): generate print also if no
  188.     purpose is specified (bug fixed)
  189.  
  190. 2001-02-06  Lorenzo Bettini  <lorenzo.bettini@penteres.it>
  191.  
  192.     * acinclude.m4 (AC_NONGNU_FLAGS): Added to check if it is a non-GNU
  193.     compiler and if it handles -Aa option
  194.  
  195.     * src/cxxconfig.h: Added to make const work for C++ compilers even if
  196.     it doesn't work for C compilers
  197.  
  198.     * configure.in: Added test for AC_C_CONST
  199.  
  200. 2001-02-04  Lorenzo Bettini  <lorenzo.bettini@penteres.it>
  201.  
  202.     * src/alloca.c: Added taken from GNU hello
  203.  
  204.     * configure.in: Added AC_FUNC_ALLOCA
  205.  
  206.     * src/cmdline.ggo: Added purpose
  207.  
  208.     * src/gm.c (generate_cmdline_parser): print_version and print_help
  209.     are public
  210.  
  211. 2001-01-30  Berthold Höllmann <hoel@germanlloyd.org>
  212.  
  213.     * src/gm.c (generate_cmdline_parser): purpose is generated in
  214.     print_help
  215.     
  216.     * src/parser.y: PURPOSE added to the syntax
  217.  
  218.     * src/scanner.l: TOK_MLSTRING for strings with newline
  219.  
  220.     * src/gengetopt.c (gengetopt_define_purpose): 
  221.  
  222. 2001-01-11  Lorenzo Bettini  <lorenzo.bettini@penteres.it>
  223.  
  224.         * NEWS: version 2.2 released
  225.     
  226.     * doc/no_getopt_long.txt: Added AC_SUBST when you use AC_CHECK_FUNCS
  227.  
  228.     * src/gm.c (generate_cmdline_parser): changed the style of all
  229.     printf, when strings are in more than one line
  230.  
  231. 2000-12-04  Robert Walsh <Robert.J.Walsh@eng.sun.com>
  232.  
  233.     * src/gm.c: changed the style of printf strings, removed C++ comment,
  234.     now compile without warning under Sun compiler.
  235.  
  236. 2000-11-01  Richard Heggs <richard@virtua-web.co.uk>
  237.  
  238.     * src/gm.c: VERSION and PACKAGE are generated in cmdline.h instead of
  239.     cmdline.c
  240.  
  241. 2000-10-10  Person or Persons Unknown <damned@world.std.com>
  242.  
  243.     * src/gengetopt.c: handle long options with no short option.
  244.  
  245.     * src/gm.c: handle long options with no short option.
  246.     
  247. 2000-10-09  Scott Haug <scott@id3.org>
  248.  
  249.     * src/gm.c: change argv's type from 'char**' to 'char * const *'. 
  250.     This better matches the type signature of getopt_long, 
  251.     and it prevents compiler warnings.
  252.     #undef's PACKAGE and VERSION before setting them, in case they
  253.     are defined in the .ggo file.
  254.  
  255. 2000-09-26  N. Becker <nbecker@fred.net>
  256.  
  257.     * src/scanner.l: now accepts any string 
  258.  
  259.     * src/parser.y: exp_str is only TOK_STRING
  260.  
  261. 2000-09-20  Lorenzo Bettini (LAP)  <bettini@dsi.unifi.it>
  262.  
  263.     * NEWS: version 2.1 released
  264.  
  265.     * doc/Makefile.am: examples are installed in a subdirectory
  266.     under doc
  267.  
  268.     * doc/gengetopt.html.in: the version number is substituted by
  269.     configure
  270.  
  271.     * src/gm.c: (generate_cmdline_parser) fixed a bug for the generated
  272.     code, a malloc was not casted
  273.  
  274.     * doc/gengetopt.1.in: modified by James R. Van Zandt
  275.     <jrv@vanzandt.mv.com>
  276.  
  277.     * doc/gengetopt.html: we do not include sections from the GNU
  278.     coding standards.
  279.  
  280.     * LICENSE: the generated code is not under any license
  281.  
  282. 2000-08-01  Lorenzo Bettini  <bettini@gdn.dsi.unifi.it>
  283.  
  284.     * NEWS: version 2.0 released
  285.  
  286.     * doc/gengetopt.html: warning for win32 users, and md5sum and
  287.     gpg signed
  288.  
  289.     * doc/Makefile.am (cmdline1.c.html): bug fixed for win
  290.  
  291.     * src/Makefile.am: check if gengetopt is already build before
  292.      trying to build cmdline.c
  293.  
  294. 2000-07-31  Lorenzo Bettini  <lorenzo.bettini@penteres.it>
  295.  
  296.     * doc/Makefile.am (cmdline1.c.html): no recompilation if cpp2html is
  297.     not installed
  298.  
  299.     * configure.in (NO_CPP2HTML): if cpp2html is not installed
  300.  
  301. 2000-07-30  Lorenzo Bettini (LAP)  <lorenzo.bettini@penteres.it>
  302.  
  303.     * doc/gengetopt.1.in: made it obsolete
  304.  
  305.     * doc/no_getopt_long.txt: how to check if getopt_long is in the
  306.     standard library and what to do if it is not.
  307.  
  308.     * doc/gengetopt.html: mailing lists
  309.  
  310.     * LICENSE: Copyright is assigned in behalf of the Free 
  311.     Software Foundation.
  312.  
  313. 2000-07-23  Lorenzo Bettini (LAP)  <lorenzo.bettini@penteres.it>
  314.  
  315.     * doc/man_getopt.html: added, it is the man page of getopt
  316.  
  317.     * doc/Makefile.am (gengetoptdoc_DATA): also examples are in doc dir
  318.  
  319.     * configure.in (CPP2HTML): use cpp2html to format sample files 
  320.  
  321.     * src/cmdline.ggo: no option is required
  322.  
  323.     * src/gm.c: generate the test for required options
  324.  
  325.     * src/ggos.h (struct gengetopt_option): field for flagstat and
  326.     for required
  327.  
  328.     * src/gm.c (generate_cmdline_parser): initialize flags and strings
  329.  
  330.     * Makefile.am (gengetoptdoc_DATA): install ChangeLog and other files
  331.     in doc dir
  332.  
  333.     * src/gm.c (generate_cmdline_parser): fixed a bug about wrong
  334.     indentation in .h generated file.
  335.  
  336. 2000-07-09  Lorenzo Bettini  <lorenzo.bettini@penteres.it>
  337.  
  338.     * src/gm.c (indent): Added for indenting like GNU standards
  339.     (check_option_given): function instead of macro
  340.     (generate_cmdline_parser): now indent according to GNU standards
  341.  
  342. 2000-07-01  Lorenzo Bettini  <lorenzo.bettini@penteres.it>
  343.  
  344.     * src/gm.c (generate_cmdline_parser): "redeclared" error message
  345.     renamed in "given more than once"
  346.  
  347.     * configure.in (gengetoptdocdir): use $datadir instead of $prefix 
  348.  
  349. 2000-01-12  Lorenzo Bettini  <lorenzo.bettini@penteres.it>
  350.  
  351.     * doc/Makefile.am (man_MANS): man page installed, and html pages
  352.  
  353. 2000-01-10  Lorenzo Bettini  <bettini@gdn.dsi.unifi.it>
  354.  
  355.     * doc/Makefile.am: check for NO_GETOPTLONG and NO_STRDUP, and in
  356.     case link with .o in src dir
  357.  
  358.     * configure.in (TAR): check for tar program. 
  359.     (NO_GETOPTLONG): a conditional for check 
  360.  
  361. 2000-01-10  Lorenzo Bettini  <lorenzo.bettini@penteres.it>
  362.  
  363.     * doc/Makefile.am: added sample1 and sample2, two test programs
  364.     sample1 is a C++ prog, and uses unamed options
  365.  
  366.     * configure.in: (AC_PROG_CXX) we use C++ in a test file
  367.  
  368. 2000-01-09  Lorenzo Bettini  <lorenzo.bettini@penteres.it>
  369.  
  370.     * src/cmdline.ggo: it contains gengetopt command line
  371.  
  372.     * src/gengetopt.c (gengetopt_strdup) (gengetopt_strcmp): erased.
  373.      (main): handles command line options
  374.  
  375.     * configure.in (strdup): if not found we use our strdup.c 
  376.     (const): check if const is supported 
  377.  
  378.     * src/gm.c (generate_cmdline_parser): gets unamed_options param
  379.     to generate unamed_options fields in the structure.
  380.     char **inputs and inputs_num added to the structure to hold
  381.     unamed options.
  382.     string.h included.
  383.     create an header file and an output file.
  384.     the header file can used in C++ as well.
  385.     for ARG_NO options a _given field is generated and handled.
  386.     a comment can be passed, e.g. the command line used to generate file,
  387.     to be printed in the comment at the top of generated file.
  388.  
  389. 2000-01-09  Lorenzo Bettini (LAP)  <lorenzo.bettini@penteres.it>
  390.  
  391.     * src/gm.c: a struct is generated for args info, instead of
  392.     using variables
  393.  
  394. 2000-01-08  Lorenzo Bettini (LAP)  <lorenzo.bettini@penteres.it>
  395.  
  396.     * src/gm.h : Added 
  397.  
  398.     * src/gm.c (generate_cmdline_parser): generate_main renamed 
  399.     config.h is included with " instead of <>.
  400.     the name of the function to generate is passed.
  401.  
  402.     * src/ggos.h: config.h included: VERSION and PACKAGE are defined there
  403.  
  404.     * configure.in: (--enable-warnings) option added to configure
  405.     this way -Wall is added to compiler options.
  406.  
  407.     * src/gengetopt.h: added with functions exported by gengetopt.c  
  408.  
  409.     * src/parser.y: inclusion of stdlib for malloc and free, and string.h
  410.     extern yyerror and yylex, include gengetopt.h.
  411.     automake renames y.tab.c in parser.c
  412.  
  413.     * src/yyerror.c (yyerror): made it void
  414.  
  415.     * src/scanner.l: scanner.lex renamed scanner.l, and it includes
  416.     parser.h, renamed by automake.
  417.     automake renames the c file to scanner.c
  418.  
  419.     * started to use automake and autoconf; created src and doc dir 
  420.  
  421.